package com.example.demo.mapper;

import com.example.demo.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

@Mapper
public interface RoleMapper {
    int insertRole(Role role);
    int updateRole(Role role);
    int deleteRole(Integer id);
    List<Map<String, Object>> selectRoleList(Map<String, Object> params);
    int updateRoleStatus(@Param("id") Integer id, @Param("status") Integer status);

    int updateRuleIds(@Param("id") Integer id, @Param("rule_ids") List<Integer> ruleIds);
}
